{include file="./modules/simple_messaging/templates/menu.tpl"}
{config_load file=$simple_messaging_lang_conf}
{literal}
<style type="text/css">
#spm {
	background:#f2fbff;
	border:1px solid #c3eafa;
	border-collapse:separate;
}
#spm th, tfoot {
	background:#e6f7fd;
	border-top:1px solid #fff;
	border-right:1px solid #aae0ff;
	border-bottom:1px solid #cfeffb;
	border-left:1px solid #fff;
	padding:7px 10px;
	text-align:left;
}
#spm td {
	border-top:1px solid #fff;
	border-bottom:1px solid #cfeffb;
	border-right:1px solid #cfeffb;
	border-left:1px solid #fff;
	padding:2px 10px;
	line-height:20px;
}
</style>
{/literal}
<form method="get" action="module.php">
	<input type = "hidden" name="module" value="simple_messaging">
	<input type = "hidden" name="return" value="{$return}">
	<input type = "hidden" name="view" value="send">
	<table id="spm" cellpadding="0" cellspacing="0">
		<tr>
			<th width="17%">Send To</th>
			<th><a href="{$my_pligg_base}/user.php?login={$msgToName}"><strong>{$msgToName}</strong></a></th>
		</tr>
		<tbody>
			<tr>
				<td><label for="msg_subject"><strong>{#PLIGG_MESSAGING_Subject#}</strong></label></td>
				<td><input type="text" id="msg_subject" name="msg_subject" value="{$msg_subject}" size="50" required="true" /></td>
			</tr>
			<tr>
				<td valign="top"><label for="msg-body"><strong>{#PLIGG_MESSAGING_Message#}</strong></label></td>
				<td><textarea id="msg_body" name="msg_body" rows="10" cols="50"></textarea></td>
			</tr>
		</tbody>
		<tfoot>
			<tr>
				<td valign="top">&nbsp;</td>
				<td>
					<input type="submit" value="{#PLIGG_MESSAGING_Send#}" tabindex="3" />
					<input type="hidden" name="msg_to" id="msg_to" value="{$msgToName}" />
				</td>
			</tr>
		</tfoot>
	</table>
</form>	
</div>
{config_load file=simple_messaging_pligg_lang_conf}